package com.eightbears.beboy.entity;

import java.io.Serializable;

/**
 * @创建者 Administrator
 * @创建时间 Created by Administrator on 2017/4/24.
 * @描述 by ${TODO}.
 * @更新 $Author$
 * @更新时间 2017/4/24
 * @更新描述 ${TODO}.
 */

public class UserInfoEntity implements Serializable {
    /**
     * message : success
     * status_code : 200
     * data : {"user_id":14,"nickname":"Harris","email":"","status":1,"is_auth":0,"birthday":"1989-04-29","true_name":"","sex":"1","mobile":"15018444821","vip_level":0,"cover":"http://8b-beboy.oss-cn-shenzhen.aliyuncs.com/image/avatar_14.jpeg","unique_id":"456"}
     */

    private String message;
    private String status_code;
    private DataBean data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getStatus_code() {
        return status_code;
    }

    public void setStatus_code(String status_code) {
        this.status_code = status_code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {

        private String user_id;
        private String nickname;
        private String email;
        private int status;
        private int is_auth;
        private String birthday;
        private String true_name;
        private String sex;
        private String mobile;
        private int vip_level;
        private String vip_validity;
        private String cover;
        private String unique_id;
        private String guest_id;
        private String mobile_city_id;
        private String agent_city_id;
        private String is_agent;
        private String is_admin;
        private String district_id;
        private String longitude;
        private String latitude;
        private String shop_fav;
        private String posts;
        private String balance;
        private String ratio;//余额提现收取的手续费
        private String limit;//余额最低提现金额
        private String mlm_ratio;//提现收取的手续费
        private String mlm_limit;//最低提现金额

        public String getMlm_ratio() {
            return mlm_ratio;
        }

        public void setMlm_ratio(String mlm_ratio) {
            this.mlm_ratio = mlm_ratio;
        }

        public String getMlm_limit() {
            return mlm_limit;
        }

        public void setMlm_limit(String mlm_limit) {
            this.mlm_limit = mlm_limit;
        }

        private Points points;

        public Points getPoints() {
            return points;
        }

        public void setPoints(Points points) {
            this.points = points;
        }

        public String getRatio() {
            return ratio;
        }

        public void setRatio(String ratio) {
            this.ratio = ratio;
        }

        public String getLimit() {
            return limit;
        }

        public void setLimit(String limit) {
            this.limit = limit;
        }

        public String getBalance() {
            return balance;
        }

        public void setBalance(String balance) {
            this.balance = balance;
        }

        public String getShop_fav() {
            return shop_fav;
        }

        public void setShop_fav(String shop_fav) {
            this.shop_fav = shop_fav;
        }

        public String getPosts() {
            return posts;
        }

        public void setPosts(String posts) {
            this.posts = posts;
        }

        public String getIs_agent() {
            return is_agent;
        }

        public void setIs_agent(String is_agent) {
            this.is_agent = is_agent;
        }

        public String getIs_admin() {
            return is_admin;
        }

        public void setIs_admin(String is_admin) {
            this.is_admin = is_admin;
        }

        public String getAgent_city_id() {
            return agent_city_id;
        }

        public void setAgent_city_id(String agent_city_id) {
            this.agent_city_id = agent_city_id;
        }

        public String getVip_validity() {
            return vip_validity;
        }

        public void setVip_validity(String vip_validity) {
            this.vip_validity = vip_validity;
        }

        public String getDistrict_id() {
            return district_id;
        }

        public void setDistrict_id(String district_id) {
            this.district_id = district_id;
        }

        public String getGuest_id() {
            return guest_id;
        }

        public void setGuest_id(String guest_id) {
            this.guest_id = guest_id;
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(String latitude) {
            this.latitude = latitude;
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(String longitude) {
            this.longitude = longitude;
        }

        public String getMobile_city_id() {
            return mobile_city_id;
        }

        public void setMobile_city_id(String mobile_city_id) {
            this.mobile_city_id = mobile_city_id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getIs_auth() {
            return is_auth;
        }

        public void setIs_auth(int is_auth) {
            this.is_auth = is_auth;
        }

        public String getBirthday() {
            if (null == birthday) {
                birthday = "未知";
            }
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getTrue_name() {
            return true_name;
        }

        public void setTrue_name(String true_name) {
            this.true_name = true_name;
        }

        public String getSex() {
            if (null != sex && sex.equals("0")) {
                sex = "未知";
                return sex;
            }
            return sex.equals("1") ? "男" : "女";
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public int getVip_level() {
            return vip_level;
        }

        public void setVip_level(int vip_level) {
            this.vip_level = vip_level;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        public String getUnique_id() {
            return unique_id;
        }

        public void setUnique_id(String unique_id) {
            this.unique_id = unique_id;
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "user_id='" + user_id + '\'' +
                    ", nickname='" + nickname + '\'' +
                    ", email='" + email + '\'' +
                    ", status=" + status +
                    ", is_auth=" + is_auth +
                    ", birthday='" + birthday + '\'' +
                    ", true_name='" + true_name + '\'' +
                    ", sex='" + sex + '\'' +
                    ", mobile='" + mobile + '\'' +
                    ", vip_level=" + vip_level +
                    ", vip_validity='" + vip_validity + '\'' +
                    ", cover='" + cover + '\'' +
                    ", unique_id='" + unique_id + '\'' +
                    ", guest_id='" + guest_id + '\'' +
                    ", mobile_city_id='" + mobile_city_id + '\'' +
                    ", agent_city_id='" + agent_city_id + '\'' +
                    ", is_agent='" + is_agent + '\'' +
                    ", is_admin='" + is_admin + '\'' +
                    ", district_id='" + district_id + '\'' +
                    ", longitude='" + longitude + '\'' +
                    ", latitude='" + latitude + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "UserInfoEntity{" +
                "message='" + message + '\'' +
                ", status_code='" + status_code + '\'' +
                ", data=" + data +
                '}';
    }

    public static class Points implements Serializable {
        private int point;
        private int total_point;
        private int level;
        private int point_to_next;

        public int getPoint() {
            return point;
        }

        public void setPoint(int point) {
            this.point = point;
        }

        public int getTotal_point() {
            return total_point;
        }

        public void setTotal_point(int total_point) {
            this.total_point = total_point;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public int getPoint_to_next() {
            return point_to_next;
        }

        public void setPoint_to_next(int point_to_next) {
            this.point_to_next = point_to_next;
        }
    }
}
